package com.zhuiyun.project.api.sysarticle.service;

import com.zhuiyun.project.api.friend.model.FriendModel;
import com.zhuiyun.project.api.joingroup.model.JoinGroupModel;
import com.zhuiyun.project.api.sysarticle.model.ArticleModel;
import com.zhuiyun.project.api.sysarticle.model.CommentModel;
import com.zhuiyun.project.util.pageUtil.PageRequest;
import com.zhuiyun.project.util.pageUtil.PageResult;

import java.util.List;

/**
 * @ClassName ArticleService
 * @Description TODO
 * @Author 韩佳轩
 * @Date 2023/6/15 10:35
 **/
public interface ArticleService {
    /**
    * @Author 韩佳轩
    * @Description 小程序首页
    * @Date 2023/6/15 16:49
    * @Return com.zhuiyun.project.util.pageUtil.PageResult
    * @param articleModel
    * @param
    */
    List<ArticleModel> getArticleAll(ArticleModel articleModel);


    /**
     * @Author 小江
     * @Description //TODO 根据病种查询
     * @Date 20:13 2023/7/11
     **/
    PageResult ArticleLater(ArticleModel articleModel, PageRequest pageRequest);


    /**
     * @Author 韩佳轩
     * @Description sys全查文章
     * @Date 2023/6/15 16:49
     * @Return com.zhuiyun.project.util.pageUtil.PageResult
     * @param articleModel
     * @param pageRequest
     */
    PageResult getSysArticleAll(ArticleModel articleModel,PageRequest pageRequest);
    /**
    * @Author 韩佳轩
    * @Description 下架文章
    * @Date 2023/6/15 16:50
    * @Return int
    * @param id
    */
    int deleteArticle(int id);

    /**
    * @Author 韩佳轩
    * @Description 小程序首页跳转详情
    * @Date 2023/6/20 16:25
    * @Return
    * @param
    */
    List<ArticleModel> ArticleMain(ArticleModel articleModel);
    /**
     * @Author 韩佳轩
     * @Description 医师列表
     * @Date 2023/6/20 16:25
     * @Return
     * @param
     */
    List<ArticleModel> ArticleDoctorList(ArticleModel articleModel);
    /**
    * @Author 韩佳轩
    * @Description 评论全查
    * @Date 2023/6/22 10:43
    * @Return java.util.List<com.zhuiyun.project.api.sysarticle.model.CommentModel>
    * @param commentModel
    */
    List<CommentModel> CommentAll(CommentModel commentModel);

    /**
    * @Author 韩佳轩
    * @Description 添加评论
    * @Date 2023/6/22 10:48
    * @Return int
    * @param
    */
    int insertComment(CommentModel commentModel);
    /**
     * @Author 韩佳轩
     * @Description 权限私密 （公开默认全查）
     * @Date 2023/6/30 9:03
     * @Return
     * @param articleModel
     */
    int Privacy(ArticleModel articleModel);

    /**
     * @Author 韩佳轩
     * @Description 转发文章的好友列表
     * @Date 2023/7/14 11:19
     * @Return
     * @param friendmodel
     */
    List<FriendModel> FriendList(FriendModel friendmodel);
    /**
     * @Author 韩佳轩
     * @Description  转发文章的群聊列表
     * @Date 2023/7/31 16:54
     * @Return java.util.List<com.zhuiyun.project.api.friend.model.FriendModel>
     * @param  joinGroupModel
     */
    List<JoinGroupModel> GroupList(JoinGroupModel joinGroupModel);
}
